package com.un.ebs.product.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.un.ebs.core.enums.IEnum;
import lombok.Getter;

/**
 * 资源类商品的状态
 *
 * @author Administrator
 */
@Getter
public enum ProductSkuResourceStatusEnum implements IEnum {

    Default(0, "非资源"),
    Idle(1, "可用"),
    User(2, "占用"),
    Empty(3, "无库存"),
    Maintain(20, "维修"),
    Scrap(21, "报废");

    ProductSkuResourceStatusEnum(Integer value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @EnumValue
    private final int value;

    private final String desc;

    @Override
    public int getCode() {
        return value;
    }
}
